package ooday05;
/** 简单版季节枚举的测试类*/
public class EnumTest {
    public static void main(String[] args) {
        Seasons s= Seasons.AUTUMN;
        switch (s){
            case SPRING:
                System.out.println("春天来了");
                break;
            case SUMMER:
                System.out.println("夏天来了");
                break;
            case AUTUMN:
                System.out.println("秋天来了");
                break;
            case WINTER:
                System.out.println("冬天来了");
        }

        Seasons[] a= Seasons.values();
        for (int i=0;i<a.length;i++){
            System.out.println(a[i]);
        }
    }
}
